<template>
    <div class="cover">
        <div class="content">
            <h3>
                {{ title }}
                <!-- <slot name="title"></slot> -->
            </h3>
            <slot></slot>
        </div>
    </div>
</template>

<script setup>
defineProps(['title'])
</script>

<style scoped lang="scss">
.cover {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;

    .content {
        width: 300px;
        height: 300px;
        background-color: #fff;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        margin: auto;
    }
}
</style>